package com.gsdkjgpt4.sys.mapper;

import com.gsdkjgpt4.sys.entity.History;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gsdkjgpt4.sys.entity.User;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author rendong
 * @since 2024-01-18
 */
public interface HistoryMapper extends BaseMapper<History> {
    List<History> selectHistoryByUserId(Integer userId);

    void generateHistory(Integer isChatgpt, String context, Integer userId);
}
